from django.urls import path
from apps.goods.views import IndexView, ListSKUView, HOTSKUView,DetailView,CategoryVisitView

urlpatterns = [
    # 首页
    path('index/', IndexView.as_view()),

    # 视图
    path('list/<category_id>/skus/', ListSKUView.as_view()),

    # 热销数据
    path('hot/<category_id>/', HOTSKUView.as_view()),

    # 商品详情页
    path('detail/<sku_id>/',DetailView.as_view()),

    # 商品访问量
    path('detail/visit/<category_id>/',CategoryVisitView.as_view())

]

